const chalk = require('chalk')

// console.log('我的%s已经%d岁了', '猫', 2)

// const x = 1
// const y = 2
// const z = 3
// console.count('x的值为' + x + '且已经统计了几次')
// console.count('x的值为' + x + '且已经统计了几次a')
// console.count('x的值为' + x + '且已经统计了几次a')
// console.count('y的值为' + y + '且已经统计了几次')

// const fruits = ['苹果', '香蕉', '梨子']
// fruits.forEach(fruit => {
//     console.count(fruit)
// })
// fruits.forEach(fruit => {
//     console.count(fruit)
// })

// const doSomething = () => console.log('做些事情')
// const measureDoingSomething = () => {
//     console.time('doSomething()')
//     doSomething()
//     console.timeEnd('doSomething()')
// }
// measureDoingSomething()

console.log(chalk.blue('你好'))
console.log(chalk.yellow('你好'))
console.log(chalk.green('你好'))